package com.james.customcamera.http;

import com.james.customcamera.base.BaseHttpResult;
import com.james.customcamera.bean.HomeBean;
import com.james.customcamera.bean.LoginBean;
import com.james.customcamera.bean.request.HomeRequest;
import com.james.customcamera.bean.request.LoginRequest;
import com.james.customcamera.bean.request.MineBean;
import com.james.customcamera.bean.request.MineRequest;
import com.james.customcamera.bean.request.RegisterRequest;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by James on 2018/1/31 0031.
 */

public interface HttpService {
    /**
     * 登录接口
     */
    @POST("modules/app/login")
    Observable<BaseHttpResult<LoginBean>> login(@Body LoginRequest loginRequest);

    /**
     * 注册接口
     */
    @POST("modules/app/register")
    Observable<BaseHttpResult<String>> register(@Body RegisterRequest registerRequest);

    /**
     * 首页相片接口
     */
    @POST("modules/app/getMainPictures")
    Observable<BaseHttpResult<HomeBean>> getHomePhotos(@Body HomeRequest homeRequest);

    /**
     * 个人相片接口
     */
    @POST("modules/app/getMainPictures")
    Observable<BaseHttpResult<MineBean>> getMinePhotos(@Body MineRequest mineRequest);
}
